package heliotrope.game
{
	import flash.geom.Point;

	public class GameVar
	{
		private static var __instance:GameVar;
		public var playerPos:Point;
		public function GameVar(pvt:PrivateClass)
		{
		}
		
		public static function init():void
		{
			if(GameVar.__instance)
			{
				throw new Error("You can't init the GameVar twice!")
			}
			GameVar.__instance = new GameVar(new PrivateClass);
		}
		
		public static function getInstance():GameVar
		{
			return GameVar.__instance;
		}
	}
}

class PrivateClass
{
	public function PrivateClass()
	{
	}
}